import request from "@/utils/request";

// 获取营业状态
export const getStatusAPI = () => {
  return request({
    method: 'GET',
    url: '/business/shop/status'
  })
}

// 设置营业状态  status：店铺状态  1为营业，0为打烊
export const putStatusAPI = (status: number) => {
  return request({
    method: 'PUT',
    url: `/business/shop/${status}`
  })
}